package cn.tedu.basic;

import java.io.Serializable;
import java.util.Objects;

public class SaveAP implements Serializable {
    private static final long serialVersionUID = -3193364654654535741L;
    String adm;
    String password;

    public SaveAP(String adm, String password) {
        this.adm = adm;
        this.password = password;
    }

    public SaveAP() {
    }

    public String getAdm() {
        return adm;
    }

    public void setAdm(String adm) {
        this.adm = adm;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SaveAP saveAP = (SaveAP) o;
        return Objects.equals(adm, saveAP.adm) && Objects.equals(password, saveAP.password);
    }

    @Override
    public int hashCode() {
        return Objects.hash(adm, password);
    }
}
